package top.wshape1.rpc.test.springdemo1.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.wshape1.rpc.model.User;
import top.wshape1.rpc.service.HelloService;
import top.wshape1.rpc.spring.annotation.JJReference;

/**
 * @author Wshape1
 * @version 1.0
 * @description
 * @since 2024-02-20
 */

@RestController
public class RemoteHelloController {

    @JJReference
    private HelloService helloService;

    @GetMapping("hello")
    public String sayHello() {
        return helloService.sayHello(new User("wshape1", 20, 1, "beijing"));
    }

}
